package com.example.module_house.http

import com.example.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Qualifier
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object HouseNetModule {

    @Provides
    @Singleton
    @CommonMainApi
    fun provideMainApi(@NetModule.CommonRetrofit retrofit: Retrofit):HouseApi{
        return retrofit.create(HouseApi::class.java)
    }

    @Qualifier
    @Retention(AnnotationRetention.RUNTIME)
    annotation class CommonMainApi




}